<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*//运行结果为：4.2.1.3
        setTimeout(() => {
            console.log(1);
        }, 20);
        setTimeout(() => {
            console.log(2);
        }, 0);
        console.time('while');
        let i = 0;
        while (i<=99999) {
            i++
        }
        console.timeEnd('while');
        setTimeout(() => {
            console.log(3);
        }, 10);
        console.log(4);*/
        //下面的运行结果
        console.log(1);
        setTimeout(() => {
            console.log(2);

        });
    </script>
</body>

</html>